package javaCode;

/**
 * Created by lxy_920912 on 04/05/2017.
 */
public class LeetCode389 {
    public char findTheDifference(String s, String t) {
        char temp = s.charAt(0);
        for(int i = 1;i < s.length();i++){
            temp^=s.charAt(i);
        }
        for(int i = 0;i < t.length();i++){
            temp^=t.charAt(i);
        }
        return temp;
    }
}
